* {
    outline: none;
    color: #666669;
}

.boxs {
    width: 500px;
    margin: 0 auto;
    border: 2px solid #c4c7ce;
}

/* 活动名称 */
.boxs .ipt {
    width: 400px;
    height: 40px;
    margin: 10px 50px;
    line-height: 40px;
    color: #666669;
}

.boxs .ipt .huo {
    width: 300px;
    height: 32px;
    margin-left: 10px;
    outline: none;
    border: 2px solid #c4c7ce;
    border-radius: 5px;
}

/* 城市 */
.boxs .chengshi {
    width: 400px;
    height: 40px;
    margin: 0px 0px 10px 80px;
}

.boxs .chengshi .sel {
    width: 250px;
    height: 36px;
    margin-left: 10px;
    border: 2px solid #c4c7ce;
    border-radius: 5px;
}

/* 日期 */
.boxs .dey {
    width: 400px;
    height: 40px;
    margin: 0px 0px 10px 80px;
}

.boxs .dey .int {
    width: 100px;
    height: 32px;
    border: 2px solid #c4c7ce;
    border-radius: 5px;
    margin: 0 14px;
}

/* 电话 */
.boxs .chengshis {
    width: 400px;
    height: 40px;
    margin: 10px 50px;
}

.boxs .chengshis .sels {
    width: 250px;
    height: 32px;
    margin-left: 10px;
    border: 2px solid #c4c7ce;
    border-radius: 5px;
}

/* 电话沟通 */
.boxs .dianhua {
    width: 480px;
    height: 40px;
    display: flex;
    margin: 10px 10px;
    line-height: 40px;
}

.boxs .dianhua .switch-box {
    margin: 10px 20px;
    width: 40px;
}

.switch-box .switch {
    /* 隐藏checkbox默认样式 */
    display: none;
}

.switch-box label {
    /* 通过label扩大点击热区 */
    position: relative;
    display: block;
    margin: 1px;
    height: 20px;
    cursor: pointer;
}

.switch-box label::before {
    /* before设置前滚动小圆球 */
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -8px;
    margin-left: -8px;
    width: 16px;
    height: 16px;
    border-radius: 100%;
    background-color: #fff;
    box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, 0.06);
    /* 通过transform、transition属性控制元素过渡进而形成css3动画 */
    -webkit-transform: translateX(-9px);
    -moz-transform: translateX(-9px);
    transform: translateX(-9px);
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.switch-box .switch:checked~label::before {
    /* 语义：被选中的类名为"switch"元素后面的label元素里的伪类元素，进行更改css样式 */
    /* 形成伪类结构选择器：":"冒号加布尔值"checked" */
    /* " Ele1 ~ Ele2 "波浪号在css的作用：连接的元素必须有相同的父元素，选择出现在Ele1后的Ele2（但不必跟在Ele1，也就是说可以并列）  */
    -webkit-transform: translateX(9px);
    -moz-transform: translateX(9px);
    transform: translateX(9px);
}

.switch-box label::after {
    /* after设置滚动前背景色 */
    content: "";
    display: block;
    border-radius: 10px;
    height: 20px;
    background-color: #dcdfe6;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.switch-box .switch:checked~label::after {
    background-color: #409eff;
}

/* 活动类型 */
.boxs .lei {
    width: 380px;
    height: 40px;
    margin: 10px 0;
    margin-left: 50px;
    display: flex;
}

.boxs .lei div {
    width: 260px;
    margin-left: 10px;
}

/* 活动赞助商 */
.boxs .zan {
    width: 300px;
    margin-left: 30px;
    display: flex;
}

.boxs .zan div {
    margin-left: 10px;
}

/* 描述 */
.boxs .miao {
    width: 360px;
    height: 40px;
    margin: 10px 0;
    margin-left: 76px;
    display: flex;
}

.boxs .miao div {
    margin-left: 20px;
}

.boxs .miao div textarea {
    width: 300px;
    border: 2px solid #c4c7ce;
    border-radius: 5px;
}

/* 按钮 */
.boxs .but {
    width: 160px;
    margin: 20px auto;
    display: flex;
    justify-content: space-between;
}

/* 提交 */
.boxs .but .btn {
    width: 60px;
    height: 30px;
    background-color: #4e6ef2;
    border: none;
    border-radius: 5px;
    color: #fff;
}

/* 重置 */
.boxs .but .delss {
    width: 60px;
    height: 30px;
    background-color: #fff;
    border: 2px solid #c4c7ce;
    color: #000;
    border-radius: 5px;
}